<div class="widget am-cf">
    <form class="am-form-inline tpl-form-border-form" role="form" style="padding-top:0;" id="queryForm">
        <div class="am-btn-group">
            <label class="am-btn am-btn-primary am-btn-sm query_type" data-type="1">本周</label>
            <label class="am-btn am-btn-default am-btn-sm query_type" data-type="2">本月</label>
            <label class="am-btn am-btn-default am-btn-sm query_type" data-type="3">上月</label>
            <label class="am-btn am-btn-default am-btn-sm query_type" data-type="5">自定日期</label>
        </div>
        <div class="show_custom_date am-form-group am-hide">
            <div class="am-form-group " style="width:120px;"><input type="text" data-am-datepicker class="am-form-field" id="start_date" placeholder="开始时间"></div>
            -
            <div class="am-form-group " style="width:120px;"><input type="text" data-am-datepicker class="am-form-field" id="end_date" placeholder="结束时间"></div>
            <div class="am-input-group ">
                <button class="am-btn  am-btn-default am-btn-success am-icon-search  am-input-sm" type="button" id="searchsubmit"></button>
            </div>
        </div>
    </form>
</div>
<div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                        <div class="widget-title  am-fl">
                         	<div class="am-btn-group am-btn-group-xs">
                                    <a href="{{ urlfor "StatisticsController.Retail"}}" class="am-btn am-btn-default am-btn-success {{if eq .btn "retail"}} am-disabled {{end}}">销售汇总</a>
                                    <a href="{{ urlfor "StatisticsController.RetailDetailed"}}" class="am-btn am-btn-default am-btn-secondary {{if eq .btn "retail_detailed"}} am-disabled {{end}}">销售明细</a>
                            </div>
                        </div>
                        <div class="widget-function am-fr">
                            <a href="javascript:;" id="download" class="am-icon-cloud-download">下载数据</a>
                        </div>
                </div>
                <div class="widget-body  am-fr">

                            
                                <table width="100%" class="am-table tpl-table-black am-table-hover am-table-bordered" id="dataTables">
                                    <thead>
                                        <tr>
                                            <th>门店</th>
                                            <th>类型</th>
                                            <th>产品</th>
                                            <th>屈光度</th>
                                            <th>散光度</th>
                                            <th>型号</th>
                                            <th>色号</th>
                                            <th>数量</th>
                                            <th>原价</th>
                                            <th>折扣</th>
                                            <th>单价</th>
                                            <th>总金额</th>
                                            <th>进价</th>
                                            <th>利润</th>
                                            <th>时间</th>
                                        </tr>
                                    </thead>
                                    <tbody></tbody>
                                </table>
                            
                      
                </div>
            </div>
        </div>
</div>